package cc.lucien.repository;

import cc.lucien.entity.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderRepository {

    List<Order> findAll();

    Order findById(Integer id);

    Order findByCompanyName(String companyName);

    int save(Order order);

    int update(Order order);

    int deleteById(Integer id);
}
